import Vue from 'vue';
import { info } from '@/api/serve';

const user = {
  state: {
    userInfo: {},
    name: 'dainties-room'
  },

  mutations: {
    SET_USERINFO: (state, userInfo) => {
      state.userInfo = userInfo;
    }
  },
  actions: {
    // 获取用户信息
    userInfo ({ commit }) {
      return new Promise((resolve, reject) => {
        // todo

      });
    }
  }
};

export default user;
